<?php

class JS_AssignmentNode extends JS_Node {
	
	public function __construct($val) {
		parent::__construct($val);
	}
	
	public function interpret() {
		$this->children[0]->setValue($this->children[1]->interpret());
		return $this->children[0]->interpret();
	}
	
	public function __toString() {
		return $this->children[0] . ' = ' . $this->children[1];
	}
	
}

?>